package com.example.user.service;

import com.example.common.response.Result;
import com.example.user.entity.CartItem;

import java.util.List;
import java.util.Map;

public interface CartService {
    Result<Map<CartItem, Object>> getCartItemsWithProducts(Long userId);
    
    Result<Boolean> addToCart(Long userId, Long productId, Integer quantity);
    
    Result<Boolean> updateCartItem(Long userId, Long productId, Integer quantity);
    
    Result<Boolean> removeFromCart(Long userId, Long productId);
    
    Result<List<CartItem>> getCartItems(Long userId);
} 